
package com.witframework.util;

import org.apache.tools.ant.Task;

public class WADCheckSumTask extends Task {
  protected String obDir;
  protected String type;

  public void execute() {
    CheckSum cs = new CheckSum(obDir);
    if (type == null || type.equals(""))
      type = "md5.wad";
    cs.calculateCheckSum(type);
  }

  public String getObDir() {
    return obDir;
  }

  public void setObDir(String obDir) {
    this.obDir = obDir;
  }

  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

}
